package com.zxy.ziems.server.classify.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zxy.btp.common.response.PageResult;
import com.zxy.ziems.server.classify.pojo.entity.ClassifyDeviceProperty;
import com.zxy.ziems.server.classify.pojo.param.ClassifyDevicePropertyPageParam;

import java.util.List;

public interface ClassifyDevicePropertyService extends IService<ClassifyDeviceProperty> {

    List<ClassifyDeviceProperty> getByClassId(String classifyId);

    List<ClassifyDeviceProperty> getByClassifyIdAndDeviceId(String classifyId, String deviceId);


    /**
     * 删除
     *
     * @param id
     */
    void deleteById(String id);

    /**
     * 分页查询
     *
     * @param param
     * @return
     */
    PageResult<ClassifyDeviceProperty> pageListBy(ClassifyDevicePropertyPageParam param);

    List<ClassifyDeviceProperty> getByClassIds(List<String> classifyIds);

    Long countByDeviceId(String deviceId);

    /**
     * 获设备分类属性
     * @param classifyId
     * @param deviceId
     * @param dataTypeId
     * @return
     */
    ClassifyDeviceProperty getByClassifyIdAndDeviceIdAndDataTypeId(String classifyId, String deviceId, String dataTypeId);
}
